package com.guoxin.chapter2.t9;

import java.util.ArrayList;
import java.util.List;

public class MyOneList {
	private  List<String> list = new ArrayList<>();
	
	public synchronized void add(String data){
		list.add(data);
	}
	
	public synchronized int getSize(){
		return list.size();
	}
}
